<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
 <link rel="stylesheet" type="text/css" href="<?php echo base_url().'public/admin';?>/css/hdui.css">
    <script src="<?php echo base_url().'public/admin';?>/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8">
    </script>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>         
            <td>文章标题</td>        
            <td width="180">添加时间</td>
            <td width="180">修改时间</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <?php foreach($news as $v):?>
        <tbody>
            <tr>          
            <td><?php echo $v['title']; ?></td>
            <td width="180"><?php echo date('Y-m-d H:i:s ',$v['addtime']); ?></td>
            <td width="180"><?php echo date('Y-m-d H:i:s ',$v['savetime']); ?></td>
            <td width="150">
            	 <a href="<?php echo site_url('/admin/News/edit/'.$v['id'])?>"><button type="button" class="btn btn-primary btn-sm">修改</button></a>
                <a href="javascript:;" onclick="if(confirm('确定删除吗?'))
                location.href='<?php echo site_url('/admin/News/del/'.$v['id'])?>' "
                ><button type="button" class="btn btn-danger btn-sm">删除</button></a>

            </td>
        </tr>
        </tbody>
      <?php endforeach; ?>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


